home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / WWIV Mods / WWIVMOD.ZIP / PARA0003.MOD < prev    next >
Encoding:
Text File  |  1993-10-17  |  4.1 KB  |  87 lines

  1. Para0003.Mod  Last On list Changes
  2. ``Parapuke`` WWIVnet #1 AT 8251
  3. Wed Feb 03 09:58:07 1993
  4.  
  5. ┌────────────────────────────────────────────────────────────────────────────┐
  6. │ Mod Name: Para0003.Mod     Mod Authors: Parapuke                           │
  7. │ Difficulty: 1 of 10 (block copy)  Date: 02/03/93                           │
  8. │ WWIV Version: WWIV 4.22                                                    │
  9. │ Files Affected: Lilo.C                                                     │
  10. │ Description: This mod will change your listing of Last On users to show    │
  11. │              not only who logged on but when, where they are from as well  │
  12. │              the normal modem speed and calls that day.                    │
  13. └────────────────────────────────────────────────────────────────────────────┘
  14.  
  15. This one is a mod that took shape when I looked at the dull, bland, logon
  16. list, wishing that without having to go to Uedit or looking at the logs,
  17. where and when a person called.  It gives your user a list of just who and
  18. where people call your system from.  If a user reads this information
  19. right, they can also figure out when your system is least busy and can
  20. figure their own time frames to call since they have a listing of the times
  21. a person logs on.  Here is the example of the completed mod.
  22.  
  23.  
  24. Last few callers on The Resource Center for the date 02/03/93:
  25.  
  26. [20371] Drizzt Do'Urden #7 05:44:49 Montreal, QB, CAN 2400 - 1
  27. [20372] Smurf #88 06:12:23 Terre Haute  2400 - 1
  28. [20373] Madman #32 06:47:03 Ft Lauderdale, FL, USA 14400/V.32/LAPM/V.42bis - 1
  29. [20374] The Dragoon #89 08:25:51 Terre Haute, IN, USA 2400 - 1
  30. [20375] Tunes #14 08:35:22 Terre Haute, IN, USA 2400 - 1
  31. [20376] Lds #41 08:40:19 Terre Haute, IN, USA 2400 - 1
  32. [20377] Money Man #61 09:08:39 Terre Haute, IN, USA 14400/V.32/LAPM/V.42bis - 1
  33. [20378] M Mouse #50 09:38:13 Terre Haute, IN, USA 14400/V.32/LAPM/V.42bis - 1
  34.  
  35.  
  36. Let me tell you that the only changes to make here are those marked with a
  37. + (plus) in the listings and - (minus) means to remove a line.  Though
  38. there is a call for a get_string, I have used code to call up the name of
  39. your local FAVORITE system and I am not really sure it will work from there
  40. so I have asked that you just replace that line.  Feeling gutsy and wanna
  41. see if it works from the strings?
  42.  
  43. You may either get brave and type each line in or use the easy way and just
  44. copy the lines into place.
  45.  
  46. Well, lets get started.  First, of course, back up your source code.
  47.  
  48. Then load up file Lilo.C and go to void logon(void)
  49.  
  50. Look for "Laston.Txt" and then little ways down......
  51.  
  52.  
  53.       copy_line(s1,ss,&pos,len);
  54.       if ((s1[0]) && live_user) {
  55.     if (i) {
  56.       i=0;
  57.       nl();
  58.       nl();
  59. -         pl(get_string(362));  \* remove this, replace with next line *\
  60. +         npr("\r\n1Last few callers on 2%s 1for the date 2%s:0\r\n",syscfg.systemname,date()); \*this line probably wrapped in posting, attach to above *\
  61.           nl();
  62.     }
  63.     pl(s1);
  64.       }
  65.     } while (pos<len);
  66.   }
  67.   if ((actsl!=255) || (incom)) {
  68.     sl1(0,"");
  69.     sl1(0,s);
  70.     sl1(1,"");
  71. -   sprintf(s,"%ld: %s   %s - %d\r\n",  \* erase this, replace with next *\
  72. +   sprintf(s,"4[%ld]0 4%s1 %s7 %s, %s, %s %s - %d0\r\n",
  73.       status.callernum1,
  74.       nam(&thisuser,usernum),
  75. +         times(),
  76. +      thisuser.city,
  77. +      thisuser.state,
  78. +      thisuser.country,
  79.           curspeed,
  80.           thisuser.ontoday);
  81.     sprintf(s1,"sUSER.LOG",syscfg.gfilesdir);
  82.     f=open(s1,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
  83.  
  84. Thats it...  compile and AFTER the first user logs on after insertion of
  85. this mod, you will see the difference in your "Last Caller" listings when a
  86. person first logs on....
  87.